<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="Keywords" content="" />
        <meta name="Description" content="" />
        <title>用户中心_淘嘟嘟</title>
        <link rel="stylesheet" type="text/css" href="__CSS__/home/common.css" />
        <link rel="stylesheet" type="text/css" href="__CSS__/home/passport.css" />
        <script src="__JQ__" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript" src="__JS__/jquery.form.js"></script>
        <script type="text/javascript" src="__JS__/layer/layer.js"></script>
        <script type="text/javascript" src="__JS__/jquery.layer.js"></script>
        <script type="text/javascript" src="__JS__/Validform_v5.3.2.js"></script>
        <script type="text/javascript" src="__JS__/taodudu.lib.js" charset="utf-8"></script>
        <script type="text/javascript" src="__JS__/passwordStrength-min.js" charset="utf-8"></script>
    </head>

    <body>
        <div class="logo-r">
            <div class="logo-info-r">
                <a href="./" class="logo"></a><span class="findpw">欢迎登录</span>
                <a href="http://weibo.com/taodudu66" class="sina"></a>
                <div class="user-weixin weixin">
                    <span></span>
                    <div class="erweima">
                        <div class="erweima-inner">
                            <i><s>◇</s></i>
                            <img alt="微信" src="__IMG__/home/weixin.jpg" width="130" height="130">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            //微信二维码
            $(".logo-info-r .weixin").hover(
                    function () {
                        $(".logo-info-r .erweima").show();
                    },
                    function () {
                        $(".logo-info-r .erweima").hide();
                    }
            )
        </script>
        <div class="w990">
            <div id="find-pw" class="find-pw2">
                <div class="find-con">
                    <div id="sflex04" class="stepflex">
                        <dl class="first done">
                            <dt class="s-num">1</dt>
                            <dd class="s-text"> 填写账户名 <s></s> <b></b> </dd>
                        </dl>
                        <dl class="normal doing">
                            <dt class="s-num">2</dt>
                            <dd class="s-text"> 验证身份 <s></s> <b></b> </dd>
                        </dl>
                        <dl class="normal">
                            <dt class="s-num">3</dt>
                            <dd class="s-text"> 设置新密码 <s></s> <b></b> </dd>
                        </dl>
                        <dl class="last">
                            <dt class="s-num">&nbsp;</dt>
                            <dd class="s-text"> 完成 <s></s> <b></b> </dd>
                        </dl>
                    </div>
                    <div id="find-box" class="uc-box">
                        <form action="{:U('validation')}" method="post" id="myfrom" name="myfrom" novalidate="novalidate">
                            <div class="find-pwd-con">
                                <input type="hidden" name="act" value="to_reset_password" />
                                <div id="error_container"></div>
                                <if condition="$Think.session.is_mobile eq 1">
                                <div class="item v_mobile_phone v_item">
                                    <label>手机号：</label>
                                    <span id="l_mobile_phone">{$arr[ 'user_mobile'] ? $arr[ 'user_mobile'] : '未绑定手机号'}</span>
                                </div>
                                <input type="hidden" id="mobile" value="{$arr[ 'user_mobile']}" />
                                <div id="c_mobile_code" class="item v_mobile_phone v_item">
                                    <label>请输入手机短信验证码：</label>
                                    <input type="text" id="mobile_code" name="mobile_code" class="text text-te2" value="" />
                                    <input type="hidden" id="yzm" name="yzm" value="{:session_id()}" />
                                    <input id="zphone" class="zphone code" value="获取手机验证码" onClick="get_mobile_code();" />
                                </div>
                                </if>
                                <if condition="$Think.session.is_email eq 1">
                                <div class="item v_email v_item">
                                    <label>邮箱地址：</label>
                                    <span id="l_email">{$arr['user_email'] ? $arr['user_email'] : '未绑定邮箱'}</span>
                                </div>
                                <input type="hidden" id="user_email" value="{$arr['user_email']}" />
                                <div id="c_email" class="item v_email v_item">
                                    <label>请输入邮箱验证码：</label>
                                    <input type="text" id="email_code" name="email_code" class="text text-te2" value="">
                                     <input id="zemail" type="button" value="获取邮箱验证码" class="code" onclick="Send_emil()" />
                                </div>
                                </if>
                                <div class="item">
                                    <input type="submit" name="submit" id="btn_submit" class="btn_next" value="提交" />
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="site-footer ">
            <div class="footer-related ">
                <div class="footer-info clearfix ">
                    <div class="links ">
                        <a href="# " target="_blank " title="郑州日报 "><img src="__IMG__/home/links/01.jpg "></a>
                        <a href="# " target="_blank " title="郑州晚报 "><img src="__IMG__/home/links/02.jpg "></a>
                        <a href="# " target="_blank " title="中原网 "><img src="__IMG__/home/links/03.jpg "></a>
                        <a href="# " target="_blank " title="中原地铁报 "><img src="__IMG__/home/links/04.jpg "></a>
                        <a href="# " target="_blank " title="社区播报 "><img src="__IMG__/home/links/05.jpg "></a>
                    </div>
                    <div class="info-text ">
                        <p class="nav_bottom ">
                            <a href="apply_index.php ">商家入驻</a><em>|</em>
                            <a href="sitemaps.xml ">站点地图</a><em>|</em>
                            <a href="help.php ">帮助中心</a><em style="display:none ">|</em> ICP备案证书号:
                            <a href="http://www.miibeian.gov.cn/ " target="_blank ">豫B2-20160162-1</a>
                        </p>
                        <p>
                            <a href="javascript:; ">© 2005-2016 淘嘟嘟 版权所有，并保留所有权利。</a>
                            <a href="javascript:; ">河南省电子商务产业园 </a>
                            <a href="javascript:; "> Tel: 4000371775 </a>
                            <a href="javascript:; "> E-mail: sever@taodudu.com </a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<script>
    $('#myfrom').layer({});

    function Send_emil() {
        user_email = $("#user_email").val();
        if (!user_email) {
            layer.msg("您还没有输入邮箱地址");
            return;
        }
        CheckMail(user_email);
    }
    function CheckMail(mail) {
        var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        if (filter.exec(mail)) {
            layer.msg("验证码已发送至邮箱");
            RemainTime("发送验证码");
            var data = {user_email: user_email};
            $.ajax({
                type: "POST",
                url: homeUrl + "/Security/emil",
                data: data,
                dataType: "json"
            });
        } else {
            layer.msg("您还没有输入邮箱地址");
        }
    }
</script>